﻿using SunnyPaine.Autofac.Extension.SqlSugar.Test.Dao;
using SunnyPaine.Autofac.Extension.SqlSugar.Test.Model;
using SunnyPaine.Autofac.Extension.Stereotype.Attributes;

namespace SunnyPaine.Autofac.Extension.SqlSugar.Test.Service.Impl
{
    [Service]
    public class GoodsService : IGoodsService
    {
        [Resource]
        private IGoodsDao GoodsDao { get; set; }

        public void Add(Goods goods)
        {
            this.GoodsDao.Insert(goods);
        }
    }
}
